Integrand size = 34, antiderivative size = 59 \[ \int \frac {(a B+b B \cos (c+d x)) \sec (c+d x)}{(a+b \cos (c+d x))^{3/2}} \, dx=\frac {2 B \sqrt {\frac {a+b \cos (c+d x)}{a+b}} \operatorname {EllipticPi}\left (2,\frac {1}{2} (c+d x),\frac {2 b}{a+b}\right )}{d \sqrt {a+b \cos (c+d x)}} \]
2*B*(cos(1/2*d*x+1/2*c)^2)^(1/2)/cos(1/2*d*x+1/2*c)*EllipticPi(sin(1/2*d*x +1/2*c),2,2^(1/2)*(b/(a+b))^(1/2))*((a+b*cos(d*x+c))/(a+b))^(1/2)/d/(a+b*c os(d*x+c))^(1/2)
Time = 0.03 (sec) , antiderivative size = 59, normalized size of antiderivative = 1.00 \[ \int \frac {(a B+b B \cos (c+d x)) \sec (c+d x)}{(a+b \cos (c+d x))^{3/2}} \, dx=\frac {2 B \sqrt {\frac {a+b \cos (c+d x)}{a+b}} \operatorname {EllipticPi}\left (2,\frac {1}{2} (c+d x),\frac {2 b}{a+b}\right )}{d \sqrt {a+b \cos (c+d x)}} \]
(2*B*Sqrt[(a + b*Cos[c + d*x])/(a + b)]*EllipticPi[2, (c + d*x)/2, (2*b)/( a + b)])/(d*Sqrt[a + b*Cos[c + d*x]])
Time = 0.40 (sec) , antiderivative size = 59, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 5, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.147, Rules used = {2011, 3042, 3286, 3042, 3284}
Below are the steps used by Rubi to obtain the solution. The rule number used for the transformation is given above next to the arrow. The rules definitions used are listed below.
\(\displaystyle \int \frac {\sec (c+d x) (a B+b B \cos (c+d x))}{(a+b \cos (c+d x))^{3/2}} \, dx\) |
\(\Big \downarrow \) 2011 |
\(\displaystyle B \int \frac {\sec (c+d x)}{\sqrt {a+b \cos (c+d x)}}dx\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle B \int \frac {1}{\sin \left (c+d x+\frac {\pi }{2}\right ) \sqrt {a+b \sin \left (c+d x+\frac {\pi }{2}\right )}}dx\) |
\(\Big \downarrow \) 3286 |
\(\displaystyle \frac {B \sqrt {\frac {a+b \cos (c+d x)}{a+b}} \int \frac {\sec (c+d x)}{\sqrt {\frac {a}{a+b}+\frac {b \cos (c+d x)}{a+b}}}dx}{\sqrt {a+b \cos (c+d x)}}\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \frac {B \sqrt {\frac {a+b \cos (c+d x)}{a+b}} \int \frac {1}{\sin \left (c+d x+\frac {\pi }{2}\right ) \sqrt {\frac {a}{a+b}+\frac {b \sin \left (c+d x+\frac {\pi }{2}\right )}{a+b}}}dx}{\sqrt {a+b \cos (c+d x)}}\) |
\(\Big \downarrow \) 3284 |
\(\displaystyle \frac {2 B \sqrt {\frac {a+b \cos (c+d x)}{a+b}} \operatorname {EllipticPi}\left (2,\frac {1}{2} (c+d x),\frac {2 b}{a+b}\right )}{d \sqrt {a+b \cos (c+d x)}}\) |
(2*B*Sqrt[(a + b*Cos[c + d*x])/(a + b)]*EllipticPi[2, (c + d*x)/2, (2*b)/( a + b)])/(d*Sqrt[a + b*Cos[c + d*x]])
3.4.42.3.1 Defintions of rubi rules used
Int[(u_.)*((a_) + (b_.)*(v_))^(m_.)*((c_) + (d_.)*(v_))^(n_.), x_Symbol] :> Simp[(b/d)^m Int[u*(c + d*v)^(m + n), x], x] /; FreeQ[{a, b, c, d, n}, x ] && EqQ[b*c - a*d, 0] && IntegerQ[m] && ( !IntegerQ[n] || SimplerQ[c + d*x , a + b*x])
Int[1/(((a_.) + (b_.)*sin[(e_.) + (f_.)*(x_)])*Sqrt[(c_.) + (d_.)*sin[(e_.) + (f_.)*(x_)]]), x_Symbol] :> Simp[(2/(f*(a + b)*Sqrt[c + d]))*EllipticPi[ 2*(b/(a + b)), (1/2)*(e - Pi/2 + f*x), 2*(d/(c + d))], x] /; FreeQ[{a, b, c , d, e, f}, x] && NeQ[b*c - a*d, 0] && NeQ[a^2 - b^2, 0] && NeQ[c^2 - d^2, 0] && GtQ[c + d, 0]
Int[1/(((a_.) + (b_.)*sin[(e_.) + (f_.)*(x_)])*Sqrt[(c_.) + (d_.)*sin[(e_.) + (f_.)*(x_)]]), x_Symbol] :> Simp[Sqrt[(c + d*Sin[e + f*x])/(c + d)]/Sqrt [c + d*Sin[e + f*x]] Int[1/((a + b*Sin[e + f*x])*Sqrt[c/(c + d) + (d/(c + d))*Sin[e + f*x]]), x], x] /; FreeQ[{a, b, c, d, e, f}, x] && NeQ[b*c - a* d, 0] && NeQ[a^2 - b^2, 0] && NeQ[c^2 - d^2, 0] && !GtQ[c + d, 0]
Time = 7.44 (sec) , antiderivative size = 167, normalized size of antiderivative = 2.83
method | result | size |
default | \(\frac {2 B \sqrt {\left (2 b \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+a -b \right ) \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}\, \sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \sqrt {\frac {2 b \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+a -b}{a -b}}\, \Pi \left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), 2, \sqrt {-\frac {2 b}{a -b}}\right )}{\sqrt {-2 \left (\sin ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right ) b +\left (a +b \right ) \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}\, \sin \left (\frac {d x}{2}+\frac {c}{2}\right ) \sqrt {-2 b \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+a +b}\, d}\) | \(167\) |
parts | \(\frac {2 B \left (2 \cos \left (\frac {d x}{2}+\frac {c}{2}\right ) \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right ) b^{2}+\sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \sqrt {-\frac {2 b \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{a -b}+\frac {a +b}{a -b}}\, \Pi \left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), 2, \sqrt {-\frac {2 b}{a -b}}\right ) a^{2}-\sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \sqrt {-\frac {2 b \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{a -b}+\frac {a +b}{a -b}}\, \Pi \left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), 2, \sqrt {-\frac {2 b}{a -b}}\right ) b^{2}+\sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \sqrt {-\frac {2 b \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{a -b}+\frac {a +b}{a -b}}\, b E\left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {-\frac {2 b}{a -b}}\right ) a -b^{2} \sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \sqrt {-\frac {2 b \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{a -b}+\frac {a +b}{a -b}}\, E\left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {-\frac {2 b}{a -b}}\right )\right )}{\left (a -b \right ) \left (a +b \right ) \sin \left (\frac {d x}{2}+\frac {c}{2}\right ) \sqrt {-2 b \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+a +b}\, d}-\frac {2 B b \left (2 \cos \left (\frac {d x}{2}+\frac {c}{2}\right ) \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right ) b +E\left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {-\frac {2 b}{a -b}}\right ) \sqrt {-\frac {2 b \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{a -b}+\frac {a +b}{a -b}}\, \sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, a -E\left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {-\frac {2 b}{a -b}}\right ) \sqrt {-\frac {2 b \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{a -b}+\frac {a +b}{a -b}}\, \sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, b \right )}{\left (a -b \right ) \left (a +b \right ) \sin \left (\frac {d x}{2}+\frac {c}{2}\right ) \sqrt {-2 b \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+a +b}\, d}\) | \(593\) |
2*B*((2*b*cos(1/2*d*x+1/2*c)^2+a-b)*sin(1/2*d*x+1/2*c)^2)^(1/2)*(sin(1/2*d *x+1/2*c)^2)^(1/2)*((2*b*cos(1/2*d*x+1/2*c)^2+a-b)/(a-b))^(1/2)/(-2*sin(1/ 2*d*x+1/2*c)^4*b+(a+b)*sin(1/2*d*x+1/2*c)^2)^(1/2)*EllipticPi(cos(1/2*d*x+ 1/2*c),2,(-2*b/(a-b))^(1/2))/sin(1/2*d*x+1/2*c)/(-2*b*sin(1/2*d*x+1/2*c)^2 +a+b)^(1/2)/d
Timed out. \[ \int \frac {(a B+b B \cos (c+d x)) \sec (c+d x)}{(a+b \cos (c+d x))^{3/2}} \, dx=\text {Timed out} \]
\[ \int \frac {(a B+b B \cos (c+d x)) \sec (c+d x)}{(a+b \cos (c+d x))^{3/2}} \, dx=B \int \frac {\sec {\left (c + d x \right )}}{\sqrt {a + b \cos {\left (c + d x \right )}}}\, dx \]
\[ \int \frac {(a B+b B \cos (c+d x)) \sec (c+d x)}{(a+b \cos (c+d x))^{3/2}} \, dx=\int { \frac {{\left (B b \cos \left (d x + c\right ) + B a\right )} \sec \left (d x + c\right )}{{\left (b \cos \left (d x + c\right ) + a\right )}^{\frac {3}{2}}} \,d x } \]
\[ \int \frac {(a B+b B \cos (c+d x)) \sec (c+d x)}{(a+b \cos (c+d x))^{3/2}} \, dx=\int { \frac {{\left (B b \cos \left (d x + c\right ) + B a\right )} \sec \left (d x + c\right )}{{\left (b \cos \left (d x + c\right ) + a\right )}^{\frac {3}{2}}} \,d x } \]
Timed out. \[ \int \frac {(a B+b B \cos (c+d x)) \sec (c+d x)}{(a+b \cos (c+d x))^{3/2}} \, dx=\int \frac {B\,a+B\,b\,\cos \left (c+d\,x\right )}{\cos \left (c+d\,x\right )\,{\left (a+b\,\cos \left (c+d\,x\right )\right )}^{3/2}} \,d x \]